package com.cmb.homework0722;

import java.math.BigDecimal;

/**
 * @Author llk
 * @Description //商品类
 * @Date 21:34 2022/7/23
 **/
public class Goods {
    // 商品的ID
    private Integer id;
    // 商品的名称
    private String GoodsName;
    // 购买商品需要的积分
    private BigDecimal GoodsCredit;
    // 该商品的库存量
    private Integer counts;

    public Goods(Integer id, String goodsName, BigDecimal goodsCredit, Integer counts) {
        this.id = id;
        GoodsName = goodsName;
        GoodsCredit = goodsCredit;
        this.counts = counts;
    }

    public Integer getCounts() {
        return counts;
    }

    public void setCounts(Integer counts) {
        this.counts = counts;
    }

    public Integer getId() {
        return id;
    }

    public String getGoodsName() {
        return GoodsName;
    }

    public BigDecimal getGoodsCredit() {
        return GoodsCredit;
    }
}
